package  {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import idv.cjcat.signals.ISignal;
	import idv.cjcat.signals.NativeSignal;
	
	public class SignalSprite extends Sprite {
		
		/**
		 * Relays the native mouse click event to a signal.
		 */
		private var _onMouseClick:ISignal;
		public function get onMouseClick():ISignal { return _onMouseClick; }
		
		/**
		 * Relays the native enter frame event to a signal.
		 */
		private var _onEnterFrame:ISignal;
		public function get onEnterFrame():ISignal { return _onEnterFrame; }
		
		public function SignalSprite() {
			_onMouseClick = new NativeSignal(this, MouseEvent.CLICK);
			_onEnterFrame = new NativeSignal(this, Event.ENTER_FRAME);
		}
	}
}